format alertify code