WebGL check
Better design