updated version of objects.js

fixed scrolling glitch in the palette, thanks, Kunal!