CAL-975 some small fix on typo in js