[travis] Added JSHint tests
[travis] Test with JSHint
Fixed JSHint warnings