more fixes for jquery loading