updated rotation javascript to hero-slider