IE fixes

Now works down to IE7