Bitcoin miner in javascript