update index.js twice