fix bug in String.prototype.endsWith: end -> start