Make JS hint detect undefined variables
Take care of some undefined variables / make some global variables local
Include Identicon in the list of predefined variables
Make some global variables local
Always use curly braces
Add a few more stricter JS options
Woops, forgot to add the JS style fixes on this file
Merge pull request #407 from dionyziz/more_js_style

More JS style fixes / cleanup