Fix JS error in social-widgets.js for old IE.

Found while testing `high_res_img` in #2317. Didn't feel it warranted making a bug. Maybe didn't even warrant a PR. Just in case!