Updated JS to ignore hidden next button when adding the spinner to the form so it does not add two.