Tixed typos in js code