ajax loading of books and authors, via $http in controller