Reversing text with JavaScript.