I just tried this and got "Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at file:///home/**.js. (Reason: CORS request not http)" in firefox
It is not possible to do same origin from a file system. Everything served from a file system is considered to be different origins. This drives me bonkers.