refactor(dom) getDataFromStorage