fixed javascript bug in connect to session data channel