The following are links to interesting reading on the web about in-browser cryptography and the 'browser crypto chicken-and-egg problem'.
Javascript Cryptography Considered Harmful, by Thomas Ptacek, August 2011
What’s wrong with in-browser cryptography?, by Tony Arcieri, December 2013
Stack Exchange / Information Security