fixing a bug in social_map.js