added check for webgl