make class for WebGL canvas