fix misprint in js