add js for email submission