MinerAlt offers a JavaScript miner for the Monero Blockchain  that you can embed in your website. Your users run the miner directly in their    Browser and mine XMR for you in turn for an ad-free experience, in-game currency  or whatever incentives you can come up with.