uniforms: map JS objects to GLSL structs