Specs: default exports to {} rather than document, since it makes writing modules saner

Review URL: https://codereview.chromium.org/730223002