code: function createProgram(shaderArray) {
  			var newProgram = glContext.createProgram();
  
  			for (var shaderIndex = 0; shaderIndex < shaderArray.length; ++shaderIndex) {
  					glContext.attachShader(newProgram, shaderArray[shaderIndex]);
  			}
  			glContext.linkProgram(newProgram);
  
  			// Check for errors during linking
  			var status = glContext.getProgramParameter(newProgram, glContext.LINK_STATUS);
  			if (!status) {
  					var infoLog = glContext.getProgramInfoLog(newProgram);
  					console.log("Unable to link Kinect WebGL program. Error:" + infoLog);
  					glContext.deleteProgram(newProgram);
  					return null;
  			}
  
  			return newProgram;
  	}
docs: Create a WebGL program attached to the specified shaders. .createProgram(shaderArray)  shaderArray: Array of shaders to attach to program