Fix loop parameters in index.js exportFileName function