JS, Math.Vector, 2d / 3d