Added external js files and set up view template