Allow custom JavaScript output file

Allow custom JavaScript output file. 
Merge pull request #1 from TheHippo/patch-1

Allow custom JavaScript output file