Moved functionality

Moved the drag and drop javascript to duggasys.js