Fixed JSHint issues
Merge pull request #52 from wmde/jshinterrors

Fixed JSHint issues