Updated for jQuery 2.0.1