Update routine.js