How to Extract Authors and Title from a Reference List using JS

The provided function extracts authors and titles from all reference list formats