AngularJs directive of json visualizer and editor