updates to gallery and backToTop button

-added magnific popup to gallery
-add back to top button in main.js