Add a namespace to the JavaScript and make the failure message disappear on resubmission