Rotate array in place kata in JavaScript