Added fallback when webGL setup fails

-added fallback to pure javascript when webGL setup fails. This happens
on IE11, since webGL shaders used here are too complex.