JavaScript API for web collaboration