const spinnerUtils = { showSpinner: function showSpinner() { log('showSpinner: enter'); $('#mySpinner').removeClass('invisible'); // show the spinner // in the page markup, the spinner is set to invisible so it will hide automatically when the page reloads log('showSpinner: leave'); } }