Define JSON forms in AngularJS