Here is my fiddle: http://jsfiddle.net/sepoto/Zgu9J/1/
I\'m starting with a reverse function:
function reverseArr(input) { var ret = new Array;
function reverseArr(input) { return input.slice().reverse(); }