Added javascript for flowchart dropdown