refractored stage 2/3 \n created new tester for generated js scripts. Nodejs is required fot these tests