Update vector2d.js