improve labor.js and new it after first socket message