New jQuery version doesn't work well with my code