This is unfortunately my temporary fix to make Photoswipe working in a robust way.
(I will in my spare time finish my attempt to make it IE8 compatible without Jquery)