update jquery and index