typos in js fixed