Added code listings for player.js