Configure fancybox javascript