Fixed the .js file was not generated when the print option is specified

Need to convert tabs to spaces though