need to store document in decorator

@bryevdv I think all the object_page examples are broken without this fix