Has anyone ever profited from pure client-side js code? I am not even sure it is possible.
Just because the source code is publicly viewable doesn't mean anyone can take it without permission; small people will, but the companies that would pay you for such a thing can't get away with that kind of piracy.