Various bug fixes. Move to web-hosted math.js dependency file. Creates to-do.