Rotate a 2D JavaScript array by 90 degrees, clockwise, with a simple command