adding rendering to math.js