Update Auto Refresh JS

Some connections were failing (why?).  Added auto retry to try and
connect if it fails.