title: checkSound() Function and Express interfering
body: <p>I currently have a function set up in my global.js file that starts a song and pauses it if the 4 key is pressed.  However, when I implement this function it causes my routing to stop working.  So in my mainMenu.js file when you press the 1 key it should bring you to game.html but nothing happens.  I'm not sure of what is causing this interference.  Any ideas as to how I can stop this from happening  </p>
  
  <p>global.js: </p>
  
  <pre><code>window.onload = function(){
  }
  
  //music
  var audio = new Audio('/music/oregonMusic.mp3')
  
  function checkSound(){
      audio.play();
  
      document.onkeypress = function(e){
          if(audio.paused){
              audio.play();
          }
          else if(!audio.paused &amp;&amp; e.keyCode === 52){
              audio.pause();
          }
      }
  }
  checkSound();
  </code></pre>
  
  <p>mainMenu.js:</p>
  
  <pre><code>window.onload = function(){
      //console.log('swing');
      checkSound();
  }
  
  document.onkeypress = function(e){
      //console.log('key pressed: ' + e.keyCode) 
  
      if(e.keyCode === 49){
          window.location = 'game'
      }
      else if(e.keyCode === 51){
          window.location = "topTen"
      }
  }
  </code></pre>