clean up player.js file