Added security checks to the JS interpreter.