refactor js
emit messages recorded: