Started adding functions to the JS crypto utils.