Rewriting the js for the mobile actions.