Refactored JS for footer/mp3 player