obj = (obj === undefined) ? {} : obj
var obj  = (obj) ? obj : {}
updateBook()
finished