Fix to jQuery-based examples