Version3

Fixes #20 
Fixes #15 
it will be nice when we get `endsWith` support: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/endsWith