make it compatible with jquery 1.10