add hidden at to messages
javascript cleanup