Sharing: Don't build html as a string, use jQuery instead to build the dom

cc @MTGap @LukasReschke