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.
Merge pull request #1 from IN3D/master

bug hunt assistance