updated player.js/coffee