Change function command in action.js