Adds JS to send form