Separate js files

This puts all scripts into separate files instead of generating them in PHP

cc @BYK @chazcb
Why is this `+ '/' + 'embed' + '.js'` lol