Reverse Array Without Using Temp Variable Javascript