onclick callback: add parameter

I added the $toastelement as parameter for the onclick callback. This way the callback knows which toast was clicked.