made an Ajax call to the RESTful API, to disable the button and change
the status of the book on the webpage.