Replace index.js with correct version