Fix jQuery loading condition for IE