moving array.reverse over to the web page side