JS: saving events from left to right with drag and drop to set up date