Maths & Bug fix

This includes the maths functionality into compileHMTL(). It also fixes
a bug with compileHTML() where not all elements were displayed
correctly. The loadHTML() function has been slightly altered.