Javascript For Each Loop Through Array Backwards