Manage context info for js + manages doc for xquery module.