change user messages, fix jshint warning