Uses a template to create dynamic form elements (requires jQuery)