JSHint

I found some minor issues by applying [JSHint](http://jshint.com/), such as `!===` being preferable to `!=` when comparing against singletons like `null`, `0`, and `""`.