This can be done using available JS api wrappers like 1. [ETH-lightwallet](https://github.com/ConsenSys/eth-lightwallet) 2. [hooked-web3-provider](https://github.com/ConsenSys/hooked-web3-provider)