add fancybox event to frontend.js