Normalizing JQuery syntax