String reversal using javascript.  My first git!