some miner js changes