title: call js function from HTML page
body: <p>I am making image slider using ImageFlow , i have function into JS file </p>
  
  <pre><code>  /* Closure for this */
  var my = this;
  
  // Mouse Wheel support 
  this.MouseWheel =
  {
  
      init: function()
      {
          // Init mouse wheel listener 
          if(window.addEventListener)
          {
              my.ImageFlowDiv.addEventListener('DOMMouseScroll', my.MouseWheel.get, false);
          }
          my.Helper.addEvent(my.ImageFlowDiv,'mousewheel',my.MouseWheel.get);
      },
  
      get: function(event)
      {
          var delta = 0;
          if (!event)
          {
              event = window.event;
          }
          if (event.wheelDelta)
          {
              delta = event.wheelDelta / 120;
          }
          else if (event.detail)
          {
              delta = -event.detail / 3;
          }
          if (delta)
          {
              my.MouseWheel.handle(delta);
          }
          my.Helper.suppressBrowserDefault(event);
      },
  
      handle: function(delta)
      {
      alert('handle called');
          var change = false;
          var newImageID = 0;
          if(delta &gt; 0)
          {
              if(my.imageID &gt;= 1)
              {
                  newImageID = my.imageID -3;
                  change = true;
              }
          }
          else
          {
              if(my.imageID &lt; (my.max-1))
              {
                  newImageID = my.imageID +4;
                  change = true;
              }
          }
  
          /* Glide to next (mouse wheel down) / previous (mouse wheel up) image  */
          if(change)
          {
          //alert('new image id='+newImageID);
              my.glideOnEvent(newImageID);
          }
      }
  };
  </code></pre>
  
  <p>i want to call this method from my html page , i tried </p>
  
  <pre><code>         document.addEventListener('touchmove',
  
        function(event, direction, distance, duration, fingerCount) {
  
          my.MouseWheel.handle(-1);
          if(direction == 'left'){
          my.MouseWheel.handle(-1);
          }
          else if (direction == 'right'){
  
          my.MouseWheel.handle(1);
          }
  
        }
  
        , false);
  </code></pre>
  
  <p>but MouseWheel handle function is not getting called , how to call that function ??</p>