check for webgl support by creating a context

fix #677