HTML5 canvas based adjacency matrix graph creator