Form stuck to "Please wait..." due to JS error