small changes to player.js