Use browserify.
Split js into multiple files.
Organize scripts.
Split js bundle into main script and libs.