findDependencies function

Collect attached dependencies from HTML tag object