Fix for jQuery 2.1