Avoid the need for the target element to be already in DOM

This pull request allows a `target` that's not already inside the DOM, since it avoids a new jQuery selection for $countObj