       undock();
            dockState = dockToScreen($('.element-to-dock'), {
                position: $(this).data('position'),
                spacer: $(this).data('spacer')
            });
        });
    </script>
</body>
</html>