Use jQuery inside the controller