function onSubmit(token) { document.getElementById("demo-form").submit(); }