Updated jquery loading code