Allow custom JavaScript output file

Allow custom JavaScript output file.