Updated for jquery 2.0.0