Compatibility for legacy jQuery down to 1.5