change to offline jquery