Tons of solutions / plugins involve overriding selectCallback, which must belong to the windows object, and not be part of a closure.

Function does not need to be included in DOM-ready handler, and must be
available via windows.selectCallback.