cleaning ctrl.js