prevent multiple submit on public form with Javascript