desencadear um alerta doce através do JavaScript

swal({
        title: "Update Branch?",
        html: message,
        type: "question",
        showCancelButton: true,
        cancelButtonText: "Switch To Trunk",
        cancelButtonColor: "#0080FF",
        confirmButtonColor: "#DD6B55",
        confirmButtonText: "Continue Update",
        closeOnConfirm: false,
        closeOnCancel: false
    },
    function(result){
        if(result)
        {
            swal({
                text: contmessage,
                timer: 1400,
                showConfirmButton: false
            }), alert('work please');
        },      
        else{
            swal({
                text: 'Switching to Trunk',
                timer: 1400,
                showConfirmButton: false
            });
        }
    }
);
Muhammed Hashim