This definitely has potential in the short term. And I think it can have a full long term potential once the underlying mining script exchanges actual computer power to a network where this power will be used directly later (as a utility). Much like the idea behind Golem - but it's embedded in a JavaScript code.
RE: Websites using visitor's computing power to mine Crypto Currencies - Good or Bad?