Update example to use correct document loading mechanism