angular.js directive for json properties widget based on jdorn's json-editor