ticket:6 minor JS fix