Move all js to player.js. Add some smallish fixes and changes.