add braces to if statement in index.html.