a simple model of a library of books in JS