Add browser version of crypto and test with karma