divided out playsong function. moved the function expression to pages.js and kept document ready  in application.js file