Fixed local variable declarations in index.html