Graphing tests with JS