Update obj-generate.js