patched fancybox JS to work with jQuery 1.9.x