Add noop for console.log where it's missing.
Rewrite header (now top).
Extract bootstrap variables.