Fancybox onclose undefined