fix two typos in JS