Refactored helpers-form.js to work with the new formtool form configurations.