Angular directive to convert json to html table