html replacement should be working now; removing debug echoes