More properly work with jQuery compatibility mode