added js to hook in email