Moving code out of IE only block