fix document.getElementById not working