Simple object dump in JS, works similar to print_r in PHP