add js to close idea form modal on form submit