Fixed jslint errors.

There were some JSLint errors (missing semicolons, equality signs, etc.)

Fixes #18