update player.js