Fixes for jQuery updates

Handling the new jQuery content generation.