update JS client foreverFrame not to reconnect when connecting

 #2883