Update Math extension.js