Functions.js: success, event added for click of 'close' button.