fix jquery loading

This section needs some adjustment as it's kind of not right.
But fixing quickly until there's an opportunity to review.