Graph Done and optic js call