Bunch of JSLint fixes.

- Use strict comparisons
- Semicolons
Use JSON.stringify if possible, for more informative errors.
Merge pull request #14 from int3/master

Miscellaneous improvements.