added a stringify method since IE <= 7 and some versions of firefox did not have it.