Prevent a.toLowerCase() error in socialshare

I was getting a `a.toLowerCase()` JS error after merging groovecoder's recent PR.  This fixes said issue.

If you merge, we need to test well on staging first.