fix display of 2D demos
use CDN.js version of math.js

also make mathjax async everythere