Added checks to make sure WebGL enabled and supported