Fixed all jshint errors

This pull request only fixes jshint errors and does not change the code semantic in any way.