angular directive for flowchart using flowchart.js