Trying to update js to submit form