Swapped out use of document for Y.config.doc