Update automation.js