Adding a jquery plugin doesn't help here because jQuery is not defined as global, so when the event executes there is no jQuery object