Takes care of rounding errors

Both Math.cbrt() and Math.sqrt() return floats with rounding
errors. Rounding off to 4 digits precision seems to be good enough and
makes the specs pass.
Uses Hamls built in html escaping
Merge pull request #28 from valtech/master

Small bugfixes