Change update.js to object structure