Added in a WebGL detection script from Three.js repository