citation managment javascript logic still broken.