Set dependencies as peerDependencies
Improved index.js