Support require.js/AMD and CommonJS

This is along the lines of https://github.com/umdjs/umd/blob/master/jqueryPlugin.js

It allows to use different versions of jQuery in parallel and pass the correct one into MagnificPopup.