Refactored  filtering to prevent commented scripts/styles from being added into the concat list.