Fix for javascript data path

need to find a better solution
for now this works in GH in PGH Pages, but as soon as this is used in a different environment this will fail.
todo: find a better solution