Extract CSS and JS references.