cleanup JS messages