JS code refactoring
Fix wording