fix jshint errors in value