added logic to force miner to use the same protocol as the parent page
added logic to force miner to use the same protocol as the parent page

jwhitehorn/jsMiner,jwhitehorn/jsMiner,josephholsten/jsMiner,josephholsten/jsMiner