better IE compatibility (still only IE9 though)