fix jshint warning w/ minor refactor