Fixed for pages with JavascriptEnabled class addition.