window.messageContainer = document.getElementById("response-message"); window.messageContainer.innerText = "<%= I18n.t("sail.profile_switching") %>"; setTimeout(function () { location.reload(); }, 1500);