Fix issue with form action URL and fq parameters, and removed some superfluous copy/paste JavaScript that leaked in