extract player HTML
fix bug where player wouldn't be replaced