Update index.html

Code should be in controller not in view