fixed fetching files, presenting in html; must fix getting json