Only fail JSEnv test if log is bad
Refactor RhinoJSEnv to make it more readable.
Fix #1321: Implement setTimeout (et al.) in Rhino