typo error

ensure looping only on awaited method names
Update index.js
Merge pull request #1 from malko/master

typo error