Fix minor JS style problems.
Merge pull request #29 from nicksay/fix-style

Fix minor JS style problems.