Bibtex parser in js