adding a book with sweet javascript