make sure stuff is loaded before we try to use it

@crissmancd can I get a review on this? It feels like treating the symptom of a bigger problem, but I'm not really sure what else to do.

I'm pretty sure the intermittent errors we are seeing on pages that use the IUI Cards have more to do with timing of various function calls rather than conflicting JS.  This tweaks a couple different widgets to make sure a given element is loaded before the JS goes looking for it.

Maybe IUI Cards is just heavy enough that it delays these elements so they aren't always there by the time their respective JS loads and fires.