You should be using runtime. callFunction("", x, y).
This will get minimized properly.
Normally to handle something that is accessing something that isn't minimized you would have to change something like this: funtion.doSomething() to function["doSomething"]()