Split webGL stuff from simulation