Remove tolocalestring when formatting numbers

It turns out javascript's toLocaleString is not well supported in various browsers.
Instead use the prototype suggested here http://stackoverflow.com/a/149099/49359 to
format money amounts