Updated jquery plugin to ignore other elements added to the dom structure