solving jquery issue in fancybox