Update index.js

Remove directories in replace variables to match only filenames