Tweak use of async scripts. Move beautifyication to dom-ready handler.