update JS client foreverFrame not to reconnect when connecting

 #2883
update per code review
update per code review feedback