code: function checkWebGlSupported() {
    var canvas = document.createElement('canvas');
    var gl = canvas.getContext && (canvas.getContext('webgl') ||
                                   canvas.getContext('experimental-webgl'));
    return !!gl;
  }
docs: Detect WebGl support. Keep stages/WebGl.js in sync with this.