update index.js

because velocity interface changes, update correspongdingly.