add index.js to files array