Update announcement.js

Add try catch in social init method