Javascript Object Oriented Diagraming Structures