Reverse A String In Javascript Using Math