correct the loading code jquery