Angular.js Directive for creating HTML form from json