Javascript Mastodon API for Web Browsers with streaming support
Javascript Mastodon API Client Library for Browser Clients
Check out index.html for a "how-to"