Update index.js

Make it search `package.json` for the module which required it, not for project root.