jquery stuck on loading page