Update index.js

Adding ability to add data per file via file.data
Merge pull request #6 from runemadsen/patch-1

Add ability to use different view object per file