Fix contact form for javascript

Also created a javascript-enabled test
Merge pull request #291 from 18F/hotfix/fix-contact-form-for-javascript

Fix contact form for javascript