Update index.js

Provide some basic currying to the user (to generate the template function just once for the same template string)