improve quality as per jshint