Javascript library for interacting with the OTP profile and index APIs