using Array.prototype.reverse for reversing arrays.
Merge pull request #2 from danielepolencic/master

using Array.prototype.reverse for reversing arrays.