Fixed logic about validating URLs. Updated how we look for CSS.