More cleanup
Adding Javascript and making root paths explicit in templates and files