Changed all == operators to ===

=== enforces strict equality rather than checking equality after type coercing.