Proper check for jquery plugins fancybox & masonry