Update index.js

I should really speed up my AngularJS