Mostly nits + jshintrc
+ changed '' do ""
+ added missing {} in one-line if statements
+ indentation fixes to keep 80 character line limit
+ removed additional |if| around debug statements (since they already have it)
+ .jshintrc for future usage, but should not be part of code commited to gecko

Change-Id: Ib24399c075a984e193960b787e656dacdff0af2f