A few changes I needed to make virtual-dom work.

A few of the changes are just the result of automatic whitespace trimming when I saved the file though.