A simple JS game with nodes and edges