Port DnD of messages to folders from mootools to pure Javascript