Fix whitespace and JSLint errors

This is a heads-up pull request for whitespace normalization and JSLint fixes (no functional changes).