minor fixes, ready event added to connect js client