wrapped bacon stats in conditional to avoid failing tests due to missing dom elements defined in index.html