Moved dashboard and livestream javascript into separate files

I think that's it for issue #20, couldn't find any other js.