update automation.js