Reverse string done two ways in JS.