Use jQuery Deferred object to check that Map JS is loaded when clicking on
a Map summary tab