Update object-values.js

Made it more performant.