Updated typos in js