Lightweight JavaScript library for social services