Node JS execution emulator written in Java using Rhino