updated to match toastr 2.0.1