Added backing data structures to Javascript for GUI.