state machine editor
added refs for d3 and websockets