Perf: Use document.body instead of getElementsByTagName("body").
Bugfixes and performance improvements.