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