Richard Stallman, president of the Free Software Foundation, is championing an effort to thwart the “JavaScript trap,” in which users could unknowingly be running non-free programs in their browser.