document ready fix - fixes IE78 problems