Fix #446: Make setting out of jsEnv (and sanitize stuff)
Rename importScripts to require
wip add node.js environment