Pull to refresh code for mobile website