[#33962] Use a proxy function to close modals.

Because otherwise, we will always be stuck with SqueezeBox/Mootools.

Tracker: http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=33962&start=0
@okonomiyaki3000 Agree, that change looks wrong indeed. The original line is fine I guess.