WebGL renderer cleanups

Various clean-ups in the WebGL renderer