So to run locally (via filesystem, with no server), you should do two things:
-
in main.js after image.src, do image.crossOrigin = "anonymous";
-
Run the browser with no security, for example for chrome do:
chrome.exe --disable-web-security --allow-file-access-from-files