Update loading JS