Create graphs in Javascript