Generating the testing js file