Controller.js added and index.html updated