fixed usage of $.on