a few tweaks based on jshint
Merge pull request #9 from oftn/master

a few tweaks based on jshint