Update index.js

Fixes a bug when requesting many covers
Merge pull request #1 from emersion/patch-1

Update index.js