onhidden callback: add parameter

I added the $toastelement as parameter for the onclick callback. This way the callback knows which toast was clicked.
I also moved the removeToast call more towards the end of the hideToast function, so the toastelement still exists when the handler gets it.