I see one BIG flaw on this system... google its gona kill you.
They gona mark the web page as a "malware".
I see another one.. let's say this idea kills the current ad system. everyone who owns a website switches to the java mining. few years (?) passes and the last coin gets mined. what happens now? we're going back to animated flash po-ups?