The issue with browser-based encryption, is that you would have to check the source code every time that it's served to you.
edit: Apparently there is an API, problem solved.
You can verify it once and generate a secure hash from it. Then the second time you could just check the hash.
It wouldn't be too difficult to write a browser extension that did it automatically, or a javascript bookmarklet for it.