Html Replace Function Only Works Once Javascript Youtube

Html Replace Function Only Works Once Javascript Youtube