fix "no childNodes for undefined", closes gh-6
let it accept ids, jquery objs or jquery selectors