Fixes for jshint
Merge pull request #17 from humphd/jshint-fixes

JSHint fixes