title: How to call function from another file with requireJS
body: <p>I have two files - main, and events. I'm trying to call some function from one file to another. </p>
  
  <p>So, this is how it looks:</p>
  
  <p><strong>events</strong></p>
  
  <pre><code>require(['app/main'], function(call) {
      // click event respond test
      document.body.addEventListener("click", function(e) {
          var target = e.target;
          if (target.hasClass === "call"){
              functionCall()();
          }
      });
  });
  </code></pre>
  
  <p><strong>main</strong></p>
  
  <pre><code>define(["jquery"], function() {
  
      // Call
      var box = $('.box');
      return function functionCall(){
          box.addClass('visible');
      }
  });
  </code></pre>
  
  <p>What is wrong, can anyboyd help?</p>