Functional webGLContextMonitor constructor