Graphing library in javascript