load log on domready instead of when script loaded + misc