PhotoSwipe now works in IE8 without jQuery.

- Fixed a few IE8 specific glitches.
- Helper functions are in src/ie8compat.js.