Javascript build task
Refactor of files

Split out a lot of classes into their own files.