Fix for IE's Number.prototype.toFixed issues

This addresses issue #148