Floating Social Media - Move to bottom

Hi - at the risk of monopolising discussions on FSM I want to pick up on a suggestion by Vladislav in another thread. He provided some code so that, when the FSM is displaying in-line (for smaller screens) it gets moved to the bottom of the content, rather than the top.

Here is the code he provided:

<script>
(function ($) {

function move_inline () {
	var root = $("#content"),
		inline = root.find(".wdqs-inline")
	;
	if (inline.length) {
		root.find(".entry-content").append(inline);
	}
}
$(move_inline);
$(window).resize(move_inline);

})(jQuery);
</script>

The trouble is I just can't get it to work. I don't know JavaScript - which might have something to do with it, but I can kind of make sense of what it's doing, but when I try it, it just doesn't work. I have substituted what I thought were the correct selectors for my theme, but maybe I got it wrong.

I think I'll go live with what I have so far so I can point you at an example, but if anyone can illustrate this working somewhere I'd be glad to know.