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