update action.js