Add jshint rules & make code pass