Generated filenames now have the .js extension.

When generating files, files now have a ".js" extension.