legacy version for jquery <1.4