2D vector[] math library for javascript