Update index.html

Code is now more OO