updated fancybox as was having problems with old version
made changes to Gems in Gemfile
made changes to javascript. Now behaves as expected.