Update js/m2.alerts.js fixes #38