Swap places on moving on element like in Windows taskbar (pure JavaScript)