    var test = document.querySelector("#test");
      test.addEventListener("click", function(evt) {
        document.querySelector("#ref").setAttribute("style", "margin-right: 200px;");
      }, false);
    })();
  </script>
</body>
