combined array.js into object.js