The "gpii.discoveryTool.showDiscoveryIcon" and "gpii.discoveryTool.hideDiscoveryIcon" functions are unnecessary. You can declaratively call the jquery functions in the invokers. 

(See: https://github.com/fluid-project/infusion/blob/master/src/tests/framework-tests/core/js/FluidIoCTests.js#L1572-L1593 )