Fix contact form for javascript

Also created a javascript-enabled test