more work towards shaders

- const -> var
- added shader blocks to index.html
- added shader init code and some js-side implementation
- fixed ref in Particle.js
- flatten bigTex in Texture.js (crashes with multidimensional array)