Shortened console.log replacement to output to page instead of debug console.
Added doctype to make IE9 work in standards mode.