Added Javascript API documentation