update jquery and make inserted DOM valid XML