Javascript String startsWith(suffix)
String.prototype.startsWith = function(suffix) { return this.indexOf(suffix, 0) !== -1; };
String.prototype.startsWith = function (suffix) { return !(this.indexOf(suffix) !== 0); };