Edit in JSFiddle
Result
HTML
<p id="originalArray"></p> <p id="reversedArray"></p>