fixed the moving average stuff, removed threejs