<script>
  window.opener.postMessage("1 - " + window.x, "http://mochi.test:8888");
  window.close();
</script>