Update js/m2.functions.js