Added js files to index and template