messages js disable button