Proper function check for <= IE 8