Update index.js

Allowing wildcard matches at the top level.