Remove js into its own file.

The js file probably needs a better name though
Closes #25