UPDATE: Removed redundant document.getElementById