make the sweetAlert initialize function public