lib/utilities.js
function endsWith(str,test){
  var lastIndex = str.lastIndexOf(test);
  return (lastIndex != -1) && (lastIndex + test.length == str.length);
}
function endsWith(str,test){
  var lastIndex = str.lastIndexOf(test);
  return (lastIndex != -1) && (lastIndex + test.length == str.length);
}
function endsWith ( str , test ) { var lastIndex = str . lastIndexOf ( test ) ; return ( lastIndex != - 1 ) && ( lastIndex + test . length == str . length ) ; }
simple endsWith function. Use with care
simple endsWith function . Use with care