update hide announcement with javascript