function closeremote() {
  if (window.myRemote) myRemote.close();
} 