Use indexOf instead of startsWith for Chrome (issue #48).

* It appears startsWith / endsWith were added in ES 6. Gecko apparently
  supports this already.