Migrate code to jQuery 1.9