removed bug when sending resulting object to website (TypeError: Converting circular structure to JSON)