How to reverse a string.
function ReverseString(teststring) {
myNewString = teststring.split('');
myNewString.reverse();
myReverseString = myNewString.join('');
myReverseString = myReverseString.replace(/,/g,"");
return myReverseString;
};