Made jQuery protocol agnostic