Fixes for some crappy IE 8 browser bugs