support jQuery >= 1.9