Compiling js file for the generator