try to improve retsly js init + socket dependency