Please use `$(doc).find("#" + listID)` instead of `$('#'+listID)`.  This will allow it to work even inside of an iframe.