Update index.html

Fix bug in Firefox, fix variable declarations