Combine init.js & update.js into one.