Reverse String in JS fix