minor changes to node.js to have timeouts and intervals working again properly on jmx

and to allow creating separated global contexts when loading multiple files
inizialize nodejs properly and fixed various issues with the javascript after node.js and v8 ugrades

almost all examples now seem to work ... inverting the mouse coordinates is still broken