Update index.js

Adding ability to add data per file via file.data