Fixed jslint errors. Fixes #18

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