Issue #468 by sgl: More typos in js