A simulator for low-precision floating point calculations running in the browser