Page transition js smoother