Add "This" to String.prototype.reverse

The "String.prototype.reverse = function()..." line should read "String.prototype.reverse = function(this)..."