AngularJS form generation based on JSON structure