JavaScript client for Discover