move music functions to music.js file