fix jshint errors, refs #246.