DreemGL [1] [2] addresses these problems by compiling JavaScript code into shaders.
"DreemGL is an open-source multi-screen prototyping framework for mediated environments, with a visual editor and shader styling for webGL and DALi runtimes written in JavaScript." [3]
https://youtu.be/L-apMRjlBOM?t=12m6s