Added IE8 support and tweaked some small things.