Splits up the Javascript into separate files.