fixing VMs refresh url on the JS