updating jquery on submit