compatible with jQuery 1.9.0