Window resize fixed with resizeend() function in 'draft_ui.js' and timeout