moving social sharing parsing code from server side to client side & cleaned up templates