changed fancybox hook to prevent multiple load of javascript