fixed jQuery undefined error when target is hidden
Merge pull request #62 from kevinhamiltonsmith/undefined-when-hidden

fixed jQuery undefined error when target is hidden