updates to gallery and backToTop button

-added magnific popup to gallery
-add back to top button in main.js
Merge remote-tracking branch 'origin/master'