Easy way to load social API properly in your Javascript