adding isRoot
Merge pull request #11 from andjc/extend-to-jquery

adding isRoot