Testing by moving ar graph into seperate class so that it can use
classes adn namespacing in Javascript