compatibilty with jQuery 1.9