An implementation of a 2D transformation matrix for JavaScript.