Fix jsHint errors
Merge pull request #577 from andrerod/dev

Fix jsHint errors