jquery and rest