added jshint check before minify

Fixed some jsHint warnings.
Feel free to reject this pull request if you hasn't ant plans to use jsHint.