added index.js controller to the main index.html