refactor(dom) getCurrentFileContent