jquery 1.8 version bug fix