javascript for social nets