DAR-712 fixing JS messages in preview module