Fix whitespace
Prevent global leakage
Add semicolons
Add missing return statement

Avoid following inappropriate code path.
Use more direct test for truthiness
Introduce JSHint for automated code linting
Use Node.js binaries from their stable location