Update index.js

Provide some basic currying to the user