sample book data passing in, function executes when DOM is ready