JSLint error cleanup

Hey, wondering if you could review these changes and see if they can be accepted?  The Orion editor on JazzHub runs JSLint to validate JavaScript code, and the current source for this app produces a ton of red-x's.  This pull request eliminates all of them.  There were just a few types of changes needed:
* add a JSlint directive to tell it about Node globals
* change == to ===
* wrap if bodies in braces
* undo forward references to functions

I'm able to run a copy of the app, and I seem to get some data, but the mention counts seem to be zero.  It's possible I broke something...