Javascript Reverse Array Without Reverse Function In Python In W3