messages js change