Change equality section to use === rather than ==

The == and != operators are known as the "evil twins" to the === and !== operators as they don't always behave as expected. It is recommended that === and !== are always used for equality comparisons.

See JavaScript: The Good Parts by Douglas Crockford.