A tool to enable affine transformations in javascript