Ah, guess I should have looked closer
I'll fix that JS...
2012-08-09 08:57:12.4280|DEBUG|CommandTransfer.MessagePerformer|System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> Microsoft.JScript.JScriptException: 'return' statement outside of function
at Microsoft.JScript.DocumentContext.HandleError(JScriptException error)
at Microsoft.JScript.Context.HandleError(JSError errorId, String message, Boolean treatAsError)
at Microsoft.JScript.JSParser.ReportError(JSError errorId, Context context, Boolean skipToken)
at Microsoft.JScript.JSParser.ParseReturnStatement()
at Microsoft.JScript.JSParser.ParseStatement()
at Microsoft.JScript.JSParser.ParseStatements(Boolean insideEval)
at Microsoft.JScript.Eval.DoEvaluate(Object source, VsaEngine engine, Boolean isUnsafe)
at Evaluator.Evaluator.Eval(String expr)
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
at System.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
at Global.JS.Evaluator.Eval(String jscode)
at CommandTransfer.MessagePerformer.IiZZd7JXq20Tml4nkA5(Object )
at CommandTransfer.MessagePerformer.m6etZ4B0uY(Object , EventArgs )