[JS] fix connect host