Updated obj.js to add upload feature