js commit alert