added isWebGLSupported based on the mrdoob technique as seen in pixi.js