Separated the BrowserWindow and XULManager classes.