Here is the HTML code:
HTML Form Builder
I needed to get the form data as some sort of object. I used this:
$('#preview_form').serializeArray().reduce((function(acc, val) { acc[val.name.replace('[', '_').replace(']', '')] = val.value; return acc; }), {});