make not mix json file (relative path from HTML output) and json file path (path in which this program runs)