Updating jQuery fixing bugs