fix some small typos in js