node: correct whitespace errors and missing last newline