You've got to join DependencyNodeBase and DependencyBase tables to get the required data.
SELECT DISTINCT WebResource.Name, Entity.Name, SystemFormBase.Name
FROM DependencyNodeBase RequiredComponent
INNER JOIN WebResource ON WebResource.WebResourceId = RequiredComponent.ObjectId
INNER JOIN DependencyBase ON RequiredComponent.DependencyNodeId = DependencyBase.RequiredComponentNodeId
INNER JOIN DependencyNodeBase DependentComponent ON DependentComponent.DependencyNodeId = DependencyBase.DependentComponentNodeId
INNER JOIN SystemFormBase ON SystemFormBase.FormId = DependentComponent.ObjectId
INNER JOIN Entity ON Entity.ObjectTypeCode = SystemFormBase.ObjectTypeCode
WHERE WebResource.WebResourceType = 3 -- JavaScript