Visualize Data with a Choropleth Map with zoom and filter

Please take a look to my page… I built a zoom effect and also a filter (hover over the color-legend please). The main colour also changeable by double click on color-legend.

Link to codePen : on codePen collapse the program with several error on console.

But on my webpage run well without any error… strange…
Link to the webpage