Update draganddrop.js

fixed ajax() function