Update demo-dragdrop.js

fixed array splice typo