public static void Include(ScriptEngine eng, object a) { if (!(a is Undefined)) { String filename = a.ToString(); if (filename.Length > 3 && filename.EndsWith(".js")) { if (bad_chars.Count <String>(x => filename.Contains(x)) == 0) { try { String path = Path.Combine(Server.DataPath, eng.UserData as string, filename); eng.ExecuteFile(path); } catch (Jurassic.JavaScriptException e) { ErrorDispatcher.SendError(filename, e.Message, e.LineNumber); } } }