moved web-gl render code to renderGL.js