split out main.js, looking for a way to load shaders cleanly