why is my waypoints destroy function call throwing a error ?

why is my waypoints destroy function call throwing a error ?

hey guys , just had nothing much to do today , so decided to play around with waypoints.js(jQuery version) a bit , heres what i have so far : 

The destroy waypoints has the following code attached to it as of now: 

  1. $('.destroy').on('click' , function(){
  2.              console.log(ways);
  3.             ways.destroy();
  4.         });
you'll see this code in the animation.js file . 

when i click on the button , i get the following message : 

  1. Uncaught TypeError: ways.destroy is not a function
Why ? , i cheked the waypoints.js file and it does indeed have a destroy function , also the waypoints , have a very similar example for the destroy function , similar to the way i have used the destroy function . 

What am i doing wrong ?