Updated objects.js to use vector representation