js file for making drag/drop work