changed element attribute onclick to an event listener for navigation. Event listeners are loaded by the loadEventListeners() method, which is called by $(document).ready and is stored in the separate js file.