Remove comments and unnecessary function from dnd.js