you dont need to modify anything, if you want to get the metadata for a book from a book id, use
http://localhost:8080/ajax/book/123
replace 123 with the actual book id.
And if you have setup password protection, either supply a username and password, or use the option in the content server preferences to allow local programs full access.