js: add option to clear form on success