Much better handling for jQuery loading