cleanup on player.js