Add missing encoding.
Move jsplumb init code to angular controller.
Use flowchart instance.