Added getElementById Function to main.js