ui: Rename js function export to exportGraph