Version that is compatible with jQuery 1.4