DOM is now cleared correctly on load