average out points that fall in the same texture cell
refactor to better separate the data loading code from the visualization code in webgl