First copy the link element found below,
Then paste it in your script src attribute.(above the place you want to use the library)
After linking drag.js in your html file ,when ever you want to make an element dragable
you just go to your java-script and type drag() and pass your element's id or class.