Fixed jQuery is not defined when triggering controller event.