Updating for jquery