Update player.js

fixing syntax error