Fix jQuery compatibility