graph editor js