clean up controller js