comment.js passes jshint

So that it will pass jshint, some changes in addon/comment/comment.js
- == and != changed to === and !==
- Pos function changed to pos (capitalization should denote a
constructor)
- variables should be declared only once per scope (see hoisting)
- break statement should not be used outside of loops and switch blocks
(not technically wrong but jshint doesn't approve)