now works with jquery 1.6 too