Stringify an object using a custom indentation - Node.js and browser