message creation with javascript show/hide