updated to check if webgl supported