Update index.js

fixed rm statement