String.prototype.reverse not defined