moved javascript to player.js and added css