effect separation between javascript plot state and GL plot state