fix trailing whitespace jshint error