fixing Firefox scope bug in d3.punchcard