mat4 for the browser and node.js