whitespace fixes
keep reference to parent node when removing child
parseInt with radix to 10. Because JavaScript.