move question generation to math.js