Please wait error when submitting form embedded using JS script code