Added a js fix for large monitors and the index transition