fix jshint issues and fail build on jshint errors