function normalizePath(path) {
  return path.startsWith('dist/') ? path.slice(5) : path;
}
This is the front-end of the visualize-convnet example.

It loads display the image files and associated metainformation generated
by main.js in Node.js.