Update index.js
Merge pull request #1 from matteofilippetto/master

adjust case to search string