Calling a function from .jspre in .jslib

Hi, is there any way how to call a function from a .jspre file in .jslib?

I was trying something like following:
.jspre:

var WR = {
Helo: function () {
    window.alert("Heelo");
}
}

.jslib:

var WebGLPlugin = {

    Hello: WR.Helo,

};

mergeInto(LibraryManager.library, WebGLPlugin);

But it does not compile: ReferenceError: WR is not defined
Am I missing something? Should there be some dependency definition? Or this is not possible at all?
Thanks

I’m looking something similar. Check out this code: http://fa-games.de/2016/03/17/unity-webgl-javascript-interaction/

Note that they use parent.kongregate, my guess is that you’d need to call parent.WR.Helo(). haven’t tested though. Unity WebGL is… frustrating at times.