jquery and rails update