fix messages js