Update for jquery performance