Separate js files

This puts all scripts into separate files instead of generating them in PHP

cc @BYK @chazcb
Really? lol