vec4 for the browser and node.js