Cleaning up actions.js