bug hunt assistance

Did some bug hunting and formatting changes:

Bugs:
+ swapped "=-" to "-="
+ fixed scope issues with jsonStorage

Formatting:
+ added space after comment symbols for better legibility
+ added space between function parens and opening bracket for better
legibility
+ added a couple of missing semi-colons
+ added a couple of missing attributes to the index.html file.