Fixes #4. Issue with deprecated method name in jQuery 1.9.