fixed rogue js comment
refactoring