reverseString function

JS task reverseString completed and commented.