Fix issue related to matches and jQuery
Merge pull request #352 from arv/document-element-matches

Fix issue related to matches and jQuery