MIME type glsl

Your code needs to be transpiled in order to run inside a browser. If you want to do it inline in a html script tag, you must follow the Script usage documentation.