player.js cleanup