Added jquery to submit updated form before downloading forms

I added javascript so the form saves when download form is clicked. I also added a yield for :javascript in the application template in the footer. I added it there because the elements weren't loading in time for the javascript in the head to work.