First pass at API demo for JavaScript API