improved callback (closed https://github.com/j-l-n/noti.js/issues/2)