Adding WebGLLayer to main.js