Solved permission error caused when WebWorker tries to access FileSystem, by using a transferrable Object, as well as loading WebWorker scripts by objectUrl and not by filesystem-url, which elsewise caused an SOP error
Updated kNN-example