Loading shaders from HTML script tags

This code (originally by Vladimir Vukićević) allows you to load shaders from HTML script tags like this:

 void main(void) { gl_FragColor = vec4(1, 1, 1, 1); }

Here's the code: