JS done? Time to clean up the controller.