I have run into an issue with my implementation where the toolbar itself will not close. I press the "x" button, and the page reloads with the toolbar still in place.
Screenshot of the script tag I am including:
It seems like the page is loading twice after clicking the button...once where the toolbar is gone and then again, with the toolbar appearing.