fix typoin js code