Fixes #165 by fixing the check for WebGL