Update index.html

capitalize and randomName are undefined on the global scope