using pure javascript

instead of googleVis package