A lightweight JS library to work with planar ( 2D ) coordinates