mat3 for the browser and node.js