Updated social button javascript