Update index.js

I was running into a bug where templates were not processing, throwing the error 
"TypeError: First argument needs to be a number, array or string at new Buffer." 

By moving the parens around, I got it to work.