Javascript String startsWith(needle)
String.prototype.startsWith = function(needle) { return(this.indexOf(needle) == 0); };