You can include the library from https://login.persona.org/include.js.
The BrowserID protocol defines a new
id property on the
window.navigator object, through which it exposes the BrowserID API, that is the
IdentityManager intreface. This API has gone through several significant revisions. Each generation is listed separately below.
var id = navigator.id