Javascript support for getting children with a given component