Functions, structs, and constants now combined in one JS file. I still left the automatic uniforms as a separate step because the declaration of them is slightly different than just appending the already defined glsl code like the rest of them do.