AJAX for adding annotations & filling in the navbar