http://blog.tompawlak.org/number-cur...ing-javascript