Update vector.js