Basic JS wrapper for calling Buddy APIs.