Fixed JS behavior of rotator