Added WebGL Support and other optimizations