Matrix library for JavaScript