Update inliner.js

 To Use indexOf on a string not a buffer