Work for Cayman to test JS interface in DarkWallet