Updated player.js