Second graph that updates in real time has been added. Moved some of the javascript to external file (more to come on that)