update JS for fancybox fix