reworked frontend, sending messages via js
more logs