jshint fixes

This is a start on fixing the jshint errors

resolved issues in this PR:
- semicolon
- comparisons