Remove parentheses around typeof
Syntax follows MDN as typeof is an operator: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/typeof
Use strict (in)equality for typeof
Whitespace/formatting fixes, a few more typeof changes
Fix null checks, simplify ternary expressions
Use Regex literals
Use strict comparison operators for indexOf
Use strict comparison operators for tagName
Fix uses of indexOf, use !== -1 consistently
Use strict comparison operators for RESUtils
Also bugfixes for RESUtils.pageType
Use strict comparison operators with getAttribute
Include minor !isMatched fix suggested by andytuba
Coerce onOrOff to a boolean
Merge pull request #520 from mc10/master

Use strict (in)equality comparison operators, other various cleanup