Add getAssertion and verifyAssertion to JavaScript API.