// the plugin initializer
$.fn.galleria = function( options ) {
    return this.each(function() {
        var gallery = new Galleria();
        gallery.init( this, options );
    });
};
// Expose
window.Galleria = Galleria;var gallery = new Galleria();
gallery.init( $('#galleria'));gallery.updateCarousel();      var offsetTop = Element.getBoundingClientRect().top + document.body.scrollTop;<html>
<head>
	<title>afdafasdfasd</title>
</head>
<body>
	<div>11</div>
	<div>11</div>
	<div>11</div>
	<div>11</div>
	<div>11</div>
	<div>11</div>
	<div id='test'>TESTTESTTEST</div>
	<script type="text/javascript">
		console.log(document.getElementById('test').getBoundingClientRect().top + document.body.scrollTop);
	</script>
</body>
</html>