Fixed up main.js for player.js