Fixed JS serialization newline issue for inline text (such as in trace logs).
Added more trace logging to the command-line procedure call.