jquery loading fixes