Moving FancyBox to a better location
Fixing bug and removing dead code