Coding style cleanup of player.js.
Fixed some mistakes; sleepy coders should go to bed sooner.