Update js/m2.main.js fixes #38