Converts a JavaScript object into a nice and clear depth-indented tree for console printing.