Fix for jQuery 1.9 (both original and min files) based on http://stackoverflow.com/questions/5838454