Updated action.js