update writemaths.js