Made some progress with jQuery code in mobile version