Correct error causing share modal not to close

* The jquery selector was not selecting the correct DOM element