BlockChain parser in Javascript