Update JavaScript - Reverse String