cleaned up blockchain.js