fixing call to deprecated method (jQuery 1.9)