Added stuff to stop IE8 getting it's knickers in a twist