Fix contact form for javascript

Also created a javascript-enabled test

Fixes #290 

@dwcaraway