small typo in js naming