Correct script loading order

When I ran the bundled file, we were doing the DOM manipulation (writing the
message, changing the BG colour) before the BODY element had even been parsed.