Added javascript router
Moved javascripts functions to seperate file

In that way the view file does not have to be compiled again when changing the javascript code