Added check for RhinoJS