JavaScript Equality Choosing the Right Operator