Examples for the beta JavaScript API