Move bgmusic code into footer