update js/actions.js