Update application.js from template & add index.html