make data.json fetching work in subdirectory