window.onbeforeunload = function () { window.scrollTo(0, 0); } document.addEventListener("DOMContentLoaded", function() { $("#jsEnabled").text("true") })