Update index.js

'replacement' is defined but never used.