Added template option

We were attaching the event using jQuery. Nothing wrong with that in
some instances; However sometimes you want to use the data on the
template instead of using hidden form elements.
use templating package
fix brainfarts
should really pass the formData