Fixes jquery 1.9+ issue

Works with actual jquery versions