separate wndx DOM and JS resources