Corrected String.prototype.endsWith and added test case it was previously failing on.