Plotting with webgl and three.js