update vector2.js