jshint validation fixes