Made String.prototype.endsWith ES6-compliant.
Made String.prototype.repeat ES6-compliant.