Node.js examples for String:String End
Add method to String to check ends with
String.prototype.endsWith = function(str) {return (this.match(str+"$")==str)}