Fix bug where Twitter color was out of sync

Made isDark a global so that I can access it from the iframe on loading
and set the class if I need to. Also, this let me clean up the event
listening code that I was inserting as a string, so good stuff!