simple chart generator with native js