complete filePath passing down to mapDom function